package com.xinruke.hostels.common.util;

import org.springframework.util.DigestUtils;

/**
 * @ClassName MD5Util
 * @CreateDate 2019/6/16
 * @Author FengXinQiang
 * @Version V1.0.0.0
 * @Decription MD5工具类
 */
public class MD5Util {
    public static String md5(String str) {
        return DigestUtils.md5DigestAsHex(str.getBytes());
    }
}
